﻿using Quartz;
using System;

namespace ZYing.QPanel
{
    public class StatusFiredEventArgs : EventArgs
    {
        public IJobExecutionContext Context { get; }
        public DateTimeOffset FireTime { get; }

        public StatusFiredEventArgs(IJobExecutionContext context, DateTimeOffset fireTime, string status)
        {
            Context = context ?? throw new ArgumentNullException(nameof(context));
            Status = status ?? throw new ArgumentNullException(nameof(status));
            FireTime = fireTime;
        }

        public string Status { get; }
    }
}
